package main

import (
	"fmt"
	"kongyixueyuan.com/MyPublicChain/part3-Basic-Prototype/BLC"
)

func main() {

	//创世区块
	blockchain := BLC.CreateBlockchainWithGenesisBlock()

	// 新区快
	blockchain.AddBlockToBlockchain("send 100RMB to  zhang1",blockchain.Blocks[len(blockchain.Blocks)-1].Height,blockchain.Blocks[len(blockchain.Blocks)-1].Hash)
	fmt.Println(blockchain)
	fmt.Println(blockchain.Blocks)


}
